package com.burstly.lib.component.networkcomponent.burstly.html;

import android.content.Context;
import android.webkit.WebViewClient;
import com.burstly.lib.component.networkcomponent.burstly.html.mraid.MraidFullscreenOverlay;
import com.burstly.lib.component.networkcomponent.burstly.html.mraid.MraidView;
import com.burstly.lib.network.beans.RequestData;
import com.burstly.lib.network.beans.ResponseBean.ResponseData;

final class MraidBurstlyScriptAdaptor extends OrmmaBurstlyScriptAdaptor
{
  MraidBurstlyScriptAdaptor(Context paramContext, String paramString)
  {
    super(paramContext, paramString);
  }

  protected ScriptInterstitialOverlay<?> createFullscreenOverlay()
  {
    MraidView localMraidView = (MraidView)getWebView();
    MraidFullscreenOverlay localMraidFullscreenOverlay = new MraidFullscreenOverlay(localMraidView);
    localMraidView.setOpenedOverlay(localMraidFullscreenOverlay);
    return localMraidFullscreenOverlay;
  }

  protected StatisticsSender createStatisticsSender()
  {
    StatisticsSender.StatisticsSenderBuilder localStatisticsSenderBuilder = new StatisticsSender.StatisticsSenderBuilder();
    localStatisticsSenderBuilder.setBurstlyViewId(getViewId()).setCreativeId(getResponseData().getCrid().toString()).setEventType("mraid").setZoneId(getRequestData().getZone());
    return localStatisticsSenderBuilder.build();
  }

  public void mraidViewCreated(MraidView paramMraidView)
  {
    super.mraidViewCreated(paramMraidView);
    IRichMediaAdListener localIRichMediaAdListener = createMediaListener(createStatisticsSender());
    paramMraidView.setRichMediaListener(localIRichMediaAdListener);
    paramMraidView.setWebViewClient((WebViewClient)localIRichMediaAdListener);
    paramMraidView.requestFocus(130);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.MraidBurstlyScriptAdaptor
 * JD-Core Version:    0.6.2
 */